<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>Document</title>
        <style>
            *{
                margin:0;
                padding:0;
            }
            ul{
                list-style: none;
                background-color: #ffc0cb;
                display:inline-block;
                width:670px;
            }
            li{
                display: inline-block;
                text-align:center;
                height:50px;
            }
            a{
                display:inline-block;
                width:80px;
                line-height: 50px;
                text-decoration: none;
                font-size:16px;
                color:white;
            }
            a:hover{
                background-color: #008000;
            }
        </style>
    </head>
    <body>
        <ul>
            <li><a href = "#">新闻1</a></li>
            <li><a href = "#">新闻2</a></li>
            <li><a href = "#">新闻3</a></li>
            <li><a href = "#">新闻4</a></li>
            <li><a href = "#">新闻5</a></li>
            <li><a href = "#">新闻6</a></li>
            <li><a href = "#">新闻7</a></li>
            <li><a href = "#">新闻8</a></li>
        </ul>
    </body>
</html>